//# sourceURL=userDetail.js
layui.element.on('tab(login-user-tabs)', function (layui_obj) {
    var custom_obj = $('#tabTitles')[0].children[layui_obj.index].tabCustomObj;
    var platformCompanyEmpDetail_fn = {
        initRender: function () {
            //设置动态tab页内容主体的高度
            cmsUtils.setContentTabHeight('platformCompanyEmpDetailContent', 50);
            $('#platformCompanyEmpDetail').attr('hasRender', true);
            if (custom_obj.id) {
                var url = '/inviteCompanyEmp/platformCompanyEmpDetail/'+custom_obj.id;
                $.get(url, function (data) {
                    console.log(data);
                    platformCompanyEmpDetail_fn.setFormData(data);
                });
            }
        },
        setFormData: function (data) {
            cmsUtils.formDataBind('platformCompanyEmpDetail-form', data.data);
        },
        getFormData: function (data) {

        }
    }
    if ($('#platformCompanyEmpDetail')[0] && !$('#platformCompanyEmpDetail').attr('hasRender')) {
        platformCompanyEmpDetail_fn.initRender();
        // 设置页面高度
        $(window).resize(function() {
            cmsUtils.setContentTabHeight('platformCompanyEmpDetailContent', 50);
        });
    }

});